package com.crm.common.crm.constant;

public enum RiskLabelEnum {

    /**
     * 销售类型枚举
     */
    NORMAL(1,"正常"),
    RISK( 2,"高风险");

    RiskLabelEnum(Integer type, String remarks){
        this.type = type;
        this.remarks = remarks;
    }

    private final Integer type;
    private final String remarks;

    public static String parse(Integer type){
        for(RiskLabelEnum value : RiskLabelEnum.values()){
            if(value.type.equals(type)){
                return value.remarks;
            }
        }
        return null;
    }


    public Integer getType(){
        return type;
    }

    public String getRemarks(){
        return remarks;
    }

}
